using UnityEngine;

namespace FluffyUnderware.Curvy
{
	public class CurvyControlPointEventArgs : CurvySplineEventArgs
	{
		public enum ModeEnum
		{
			None,
			AddBefore,
			AddAfter,
			Delete
		}

		public readonly ModeEnum Mode;

		public readonly CurvySplineSegment ControlPoint;

		public CurvyControlPointEventArgs(MonoBehaviour sender, CurvySpline spline, CurvySplineSegment cp, ModeEnum mode = ModeEnum.None, object data = null)
			: base(sender, spline, data)
		{
			ControlPoint = cp;
			Mode = mode;
		}
	}
}
